package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Classname OrderProductFeignService
 * @Description TODO
 * @Date 2021/10/16 22:34
 * @Author Anonymous
 */
@FeignClient("gulimall-product")
public interface OrderProductFeignService {

    /**
     * 根据skuId获取spu信息
     */
    @RequestMapping("/product/spuinfo/spuId/{id}")
    R getSpuInfoBySkuId(@PathVariable("id") Long skuId);



}
